package com.swy.page;

import org.springframework.security.core.userdetails.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import java.security.Principal;

/**
 * @Author:XJP
 * @时间: 2018/10/17
 * @描述:
 */
@Controller
public class LoginController {

    @GetMapping(value = {"/","/index"})
    public String index() {
        return "index";
    }

    @GetMapping("/login")
    public String login(Model model) {
        return "redirect:/#/";
    }
}
